import { createRouter, createWebHistory } from 'vue-router'
import WorkflowDesigner from '../views/WorkflowDesigner.vue'

const routes = [
  {
    path: '/',
    name: 'WorkflowDesigner',
    component: WorkflowDesigner
  },
  {
    path: '/designer/:id',
    name: 'WorkflowDesignerWithId',
    component: WorkflowDesigner,
    props: true
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router 